/**
 * 
 */
package com.googlecode.pcapj.bridj;

import org.bridj.Pointer;
import org.bridj.StructObject;
import org.bridj.ann.Field;

/**
	struct bpf_program {
		u_int bf_len;
		struct bpf_insn *bf_insns;
	};

 */
public class bpf_program extends StructObject {
    public bpf_program() { super(); }
    public bpf_program(Pointer<? extends StructObject> pointer) { super(pointer); }

    /**
     * 
     * @return
     */
    @Field(0) 
    public int bf_len() {
            return this.io.getIntField(this, 0);
    }
    
    /**
     * 
     * @param bf_len
     * @return
     */
    @Field(0) 
    public bpf_program bf_len(int bf_len) {
            this.io.setIntField(this, 0, bf_len);
            return this;
    }
    
    /**
     * 
     * @return
     */
    @Field(1) 
    public Pointer<?> bf_insns() {
            return this.io.getPointerField(this, 1);
    }
    /**
     * 
     * @param bf_insns
     * @return
     */
    @Field(1) 
    public bpf_program bf_insns(Pointer<?> bf_insns) {
            this.io.setPointerField(this, 1, bf_insns);
            return this;
    }
}
